<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html class="no-js">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title><?php echo ($title); ?></title>
  <meta name="description" content="这是一个 help 页面">
  <meta name="keywords" content="help">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="renderer" content="webkit">
  <meta http-equiv="Cache-Control" content="no-siteapp" /> 
  <meta name="apple-mobile-web-app-title" content="Amaze UI" />
  <link rel="stylesheet" type="text/css" href="/zhixin/Public/assets/css/amazeui.min.css" />
  <link rel="stylesheet" type="text/css" href="/zhixin/Public/assets/css/admin.css" />
  <script type="text/javascript" src="/zhixin/Public/assets/js/jquery.min.js"></script>
   <script type="text/javascript" src="/zhixin/Public/assets/js/amazeui.min.js"></script>
</head>
<body>
<header class="am-topbar am-topbar-inverse admin-header">
  <div class="am-topbar-brand">
      <strong>河南志信科技有限公司——</strong> <small>出差管理系统</small>
  </div>
  <button class="am-topbar-btn am-topbar-toggle am-btn am-btn-sm am-btn-success am-show-sm-only" data-am-collapse="{target: '#topbar-collapse'}"><span class="am-sr-only">导航切换</span> <span class="am-icon-bars"></span></button>
  <div class="am-collapse am-topbar-collapse" id="topbar-collapse">
    <ul class="am-nav am-nav-pills am-topbar-nav am-topbar-right admin-header-list">   
    <?php if(empty($_SESSION['name'])): ?><li><a href="<?php echo U('Member/login');?>"><span class="am-icon-user"></span> 登录</a></li>
        <!--   <li><a href="<?php echo U('Member/reg');?>"><span class="am-icon-pencil"></span> 注册</a></li>  --> 
    <?php else: ?>
     <li><a href="<?php echo U('Member/login');?>"><span class="am-icon-user"></span>  欢迎您：<?php echo (session('name')); ?></a></li>
          <li><a href="<?php echo U('Member/logout');?>"><span class="am-icon-sign-out"></span>注销</a></li><?php endif; ?>                                    
    </ul>
  </div>
</header>


</body>
</html>

<style>
body{
	background:url(/zhixin/Public/assets/images/login-bg.jpg) center repeat-y;
}
</style>
<div class="login-box">
    <div class="logo-img">
      <img src="/zhixin/Public/assets/images/login.png" alt="" class="am-img-responsive am-circle" width="200",hheight="200"/>
      <p class="am-text-center am-login-pt">小草博客欢迎登录</p>
    </div>
    <form action="<?php echo U('Member/checkLogin');?>" class="am-form" method="post">
      <div class="am-form-group am-form-login" >
        <label for="doc-vld-name-2"><i class="am-icon-user am-icon-sm am-icon-wz"></i></label>
        <input type="text" class="am-form-field" id="name" name="name" minlength="3" placeholder="输入用户名（至少 3 个字符）" />
      </div>

      <div class="am-form-group am-form-login">
        <label for="password"><i class="am-icon-key am-icon-sm am-icon-wz"></i></label>
        <input type="password" class="am-form-field" id="password" name="password" placeholder="输入密码" />
     </div>  
      <button type="submit"  class="am-btn am-btn-secondary am-btn-lg am-round am-size" onclick="login()" >登录</button>
    </form>
  </div>
  
 <script type="text/javascript" src="/zhixin/Public/layer/layer.js"></script>
<script type="text/javascript">
 function login(){                    
        layer.load(); 
        setTimeout(function(){
        	  layer.closeAll('loading');
        	}, 3000);
        
    }    
    </script>